package com.zhou.service;

import com.zhou.dao.TheClassDAO;
import com.zhou.entity.TheClass;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("theClassService")
public class TheClassServiceImpl implements TheClassService {

    @Autowired
    private TheClassDAO theClassDAO;

    @Override
    public List<TheClass> findClasses(Integer teacherID) {
        return theClassDAO.findClasses(teacherID);
    }

    @Override
    public Integer findStudentNumber(Integer MessageID) {
        return theClassDAO.findStudentNumber(MessageID);
    }

}
